package view;

import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JPanel;

@SuppressWarnings("serial")
public class ContentPanel extends JPanel {

	/**Fond d'ecran de la fenetre.**/
	public void paintComponent(Graphics g) {

		Graphics2D g2d = (Graphics2D) g;
		GradientPaint gp = new GradientPaint(0, 0, Param.firstColor, Fenetre.fen.getWidth(), 0, Param.secondColor, false);
		g2d.setPaint(gp);
		g2d.fillRect(0, 0, Fenetre.fen.getWidth(), Fenetre.fen.getHeight());

	}

}
